package com.yanqu.road.entity.union.cross;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.union.UnionBaseInfo;

import java.util.ArrayList;
import java.util.List;

@FieldTypeAnnotation(tableName = "t_c_activity_union_lock_rank")
public class CrossUnionActivityLockRank extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(update = true, desc = "排名")
    private int rank;

    @FieldTypeAnnotation(desc = "商会")
    private String unionUid;

    @FieldTypeAnnotation(desc = "商会基础信息")
    private UnionBaseInfo unionBaseInfo;

    @FieldTypeAnnotation(desc = "分组区服")
    private List<Long> serverList = new ArrayList<>();

    @FieldTypeAnnotation(desc = "活动结束时间")
    private int endTime;


    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        if(this.rank != rank) {
            this.rank = rank;
            setUpdateOption();
        }
    }

    public String getUnionUid() {
        return unionUid;
    }

    public void setUnionUid(String unionUid) {
        this.unionUid = unionUid;
    }

    public UnionBaseInfo getUnionBaseInfo() {
        return unionBaseInfo;
    }

    public void setUnionBaseInfo(UnionBaseInfo unionBaseInfo) {
        this.unionBaseInfo = unionBaseInfo;
        setUpdateOption();
    }

    public List<Long> getServerList() {
        return serverList;
    }

    public void setServerList(List<Long> serverList) {
        this.serverList = serverList;
        setUpdateOption();
    }

    public int getEndTime() {
        return endTime;
    }

    public void setEndTime(int endTime) {
        if(this.endTime != endTime) {
            this.endTime = endTime;
            setUpdateOption();
        }
    }
}
